using System;
using System.Data.Entity.ModelConfiguration;
using System.Data.Common;
using System.Data.Entity;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using MobileWebsiteGenerator.Entities;

namespace MobileWebsiteGenerator.Mapping
{
	public class pictureGalleryMap : EntityTypeConfiguration<pictureGallery>
	{
		public pictureGalleryMap()
		{
			// Primary Key
			this.HasKey(t => t.picture_id);

			// Properties
			// Table & Column Mappings
			this.ToTable("pictureGalleries");
			this.Property(t => t.picture_id).HasColumnName("picture_id");
			this.Property(t => t.ImagePath).HasColumnName("ImagePath");
			this.Property(t => t.Size).HasColumnName("Size");
            this.Property(t => t.Caption).HasColumnName("Caption");

		}
	}
}

